package com.vnaloha.common.dao;

import java.util.List;

import com.vnaloha.common.model.Gallery;

public interface GalleryDAO {
	
	/**
	 * Get gallery by id
	 * @param id this is gallery id
	 * @return {@link Gallery}
	 */
	public Gallery get(int id);
	
	/**
	 * Save gallery
	 * @param gallery this is {@link Gallery}
	 * @return true if successfully
	 */
	public boolean save(Gallery gallery);
	
	/**
	 * Get list gallery
	 * @return a list gallery
	 */
	public List<Gallery> list();
	
	/**
	 * Get list gallery
	 * @param start this is start row
	 * @param max max row in one page
	 * @return a list {@link Gallery}
	 */
	public List<Gallery> list(int start, int max);
	
	/**
	 * Delete Gallery by id
	 * @param id this is gallery id
	 * @return true if successfully
	 */
	public boolean delete(int id);
	
}
